package com.ccrfid.rmc6.repository.video;

import com.ccrfid.rmc6.entity.video.VideoPlatformEntity;
import org.springframework.data.repository.Repository;

import java.util.List;

public interface VideoPlatformRepository extends Repository<VideoPlatformEntity, Long> {
    //
    List<VideoPlatformEntity> getAllBy();
    //
    List<VideoPlatformEntity> getAllByPlatformVersion(Integer platformVersion);
    //
    VideoPlatformEntity getById(Long id);
    //
    VideoPlatformEntity getTopByIpAndPlatformVersion(String ip, Integer platformVersion);
    //
    VideoPlatformEntity save(VideoPlatformEntity entity);
    //
    Boolean existsById(Long id);
    //
    void deleteById(Long id);
}
